// pages/order/detail/messageRemark/messageRemark.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    message: String,
  },

  /**
   * 组件的初始数据
   */
  data: {
    msg: ''
  },
  lifetimes:{
    attached(){
      this.setData({
        msg: this.data.message
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    changeVisible(){
      this.triggerEvent('input' , this.data.msg)

      this.triggerEvent('close')
    },
    foo(){},
    changeVal(e){
      console.log(e)
      this.setData({
        msg : e.detail.value
      })
    },
    sure(e){  
      // console.log()

      this.triggerEvent('input' , this.data.msg)
      this.triggerEvent('close')

    }
  }
})
